package cn.tedu.hm.service.impl;

import cn.tedu.hm.pojo.vo.AdminRoleVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.tedu.hm.pojo.AdminRole;
import cn.tedu.hm.service.AdminRoleService;
import cn.tedu.hm.mapper.AdminRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【ams_admin_role(管理员角色关联)】的数据库操作Service实现
* @createDate 2023-04-11 16:12:44
*/
@Service
public class AdminRoleServiceImpl extends ServiceImpl<AdminRoleMapper, AdminRole>
    implements AdminRoleService{
    @Autowired
    AdminRoleMapper adminRoleMapper;

    @Override
    public List<AdminRoleVO> listByAdminId(Integer id) {
        return        adminRoleMapper.listByAdminId(id);
    }
}




